﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MapWindow.Tools.Toolbox
{
    /// <summary>
    /// This class is used to enable linking of tools
    /// that work with File parameters
    /// </summary>
    public class TextFile : MapWindow.Data.DataSet
    {
        public TextFile()
        {

        }
        
        /// <summary>
        /// Creates a new instance of the TextFile class
        /// </summary>
        /// <param name="fileName">the associated file name</param>
        public TextFile(string fileName)
        {
            _fileName = fileName;
        }
        
        
        private string _fileName;

        /// <summary>
        /// The file name associated with this text file
        /// </summary>
        public string FileName
        {
            get { return _fileName; }
            set { _fileName = value; }
        }

        public override string ToString()
        {
            return FileName;
        }

    }
}
